package com.example.teachingevaluationsystem.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.teachingevaluationsystem.entity.Course;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.teachingevaluationsystem.vo.CourseVo;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author lp
 * @since 2022-03-28
 */
public interface CourseService extends IService<Course> {

    Page<CourseVo> pageVo(Page<Course> coursePage, Course course);

    /**
     * 查询用户订阅课程
     */
    Page<CourseVo> loadCourseListByUserName(Page<CourseVo> courseVoPage,String name,Long planId);

    Page<CourseVo> pageOrderVo(String name, Page<Course> coursePage, Course course,boolean isOrder);

    /**
     *  加载老师的课程评论列表
     */
    Page<CourseVo> loadCourseListByTeacherName(Page<CourseVo> courseVoPage, String name, Long planId);

    Page<CourseVo> loadEvaluationStatus(Page<CourseVo> courseVoPage, String name, Boolean isTeacher);
}
